<template>
  <div id="app">
    <b-container fluid>
      <!-- 头部 -->
      <b-row :class="$store.state.headerIsTop ? 'navFixed' : ''">
        <MyHeader />
      </b-row>

      <b-row>
        <router-view />
      </b-row>

      <!-- 脚注 -->
      <b-row>
        <b-col class="sideCard"><MyFooter /></b-col>
      </b-row>
    </b-container>
  </div>
</template>

<script>
import MyHeader from "./components/MyHeader";
// import MainPage from "./components/main/MainPage";
import MyFooter from "./components/MyFooter";

export default {
  name: "App",
  data() {
    return {};
  },
  components: {
    MyHeader,
    MyFooter,
    // MainPage,
  },
};
</script>

<style scoped lang="css">
.navFixed {
  background: rgba(255, 255, 255, 0.758);
  position: fixed;
  top: 0px;
  z-index: 4;
  width: 100%;
}
/* 原始动画 */
/* .v-enter-active,
.v-leave-active {
  transition: opacity 3s;
}
.v-enter,
.v-leave-to {
  opacity: 0;
} */
</style>

//统一设置动画
<style lang="css">
.mainDynamicCard {
  border-radius: 15px;
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.258);
}
</style>
